import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.zjj.config.SpringConfig;
import org.zjj.service.OldService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringConfig.class})
public class Spring3 {
    @Autowired   //引入依赖
    OldService oldService;

    @Test
    public void showOldDetail(){
        oldService.showOldDetail();
    }
    @Test

    public void showOld2Detail(){
        oldService.showOld2Detail();
    }
    @Test
    public void showOld3Detail(){
        oldService.showOld3Detail();
    }
}
